<template>
  <div id="app">
    <el-container style="height: 800px; border: 1px solid #eee">
<!--        <el-radio-group v-model="isCollapse" style="margin-bottom: 20px;">-->
<!--          <el-radio-button :label="false">展开</el-radio-button>-->
<!--          <el-radio-button :label="true">收起</el-radio-button>-->
<!--        </el-radio-group>-->
        <el-menu default-active="1-4-1" class="el-menu-vertical-demo" :collapse="isCollapse">
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span slot="title">导航一</span>
            </template>
            <el-menu-item-group>
              <span slot="title">分组一</span>
              <router-link :to="{path:'/'}">
                <el-menu-item index="1-1">
                  主页
                </el-menu-item>
              </router-link>
              <router-link :to="{path:'/music'}">
                <el-menu-item index="1-2">
                  列表
                </el-menu-item>
              </router-link>
            </el-menu-item-group>
            <el-menu-item-group title="分组2">
              <el-menu-item index="1-3">选项3</el-menu-item>
            </el-menu-item-group>
            <el-submenu index="1-4">
              <span slot="title">选项4</span>
              <el-menu-item index="1-4-1">选项1</el-menu-item>
            </el-submenu>
          </el-submenu>
        </el-menu>

      <el-container>
        <el-header style="text-align: right; font-size: 12px">
          <el-dropdown>
            <i class="el-icon-setting" style="margin-right: 15px"></i>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>查看</el-dropdown-item>
              <el-dropdown-item>新增</el-dropdown-item>
              <el-dropdown-item>删除</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
          <span>王小虎</span>
        </el-header>

        <el-main>
          <router-view/>
          <div id="aplayer"></div>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style>
.el-header {
  background-color: #B3C0D1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  color: #333;
}
</style>

<script>
export default {
  data() {
    const item = {
      date: '2016-05-02',
      name: '王小虎',
      address: '上海市普陀区金沙江路 1518 弄'
    };
    return {
      isCollapse: false,
      tableData: Array(20).fill(item)
    }
  },
  created() {

  },
  methods: {

  }
};
</script>
